home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 4.5 KB | 177 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _ODSESSN_
- #define _ODSESSN_
-
- #ifndef _BASESESS_
- #include "BaseSess.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This class represents the "system" calls in OpenDoc. A global function
- provides initialization of the OpenDoc environment and returns a reference
- to the one ODSession object. The member functions of the class
- include accessors for some of the other unique classes in OpenDoc as well
- as a few other system functions.
- */
-
- //==============================================================================
- // Constants
- //==============================================================================
-
- // Change these names later…
-
- //# $$$$$const ODTypeToken kODNullTypeToken = (ODTypeToken) 0;
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODSession;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODWindowState;
- interface ODDispatcher;
- interface ODArbitrator;
- interface ODStorageSystem;
- interface ODClipboard;
- interface ODDragAndDrop;
- interface ODLinkManager;
- interface ODNameSpaceManager;
- interface ODMessageInterface;
- interface ODNameResolver;
- interface ODTranslation;
- interface ODUndo;
- interface ODSemanticInterface;
- interface ODSystemSession;
- interface ODPersistentObject;
-
- //=====================================================================================
- // Implementation Types
- //=====================================================================================
-
-
- //==============================================================================
- // Functions
- //==============================================================================
-
- //# $$$$$ ODSession* OpenODSession();
-
- // Initialize the OpenDoc environment. An ODSession object will be
- // created by this call. The application shell may keep this reference
- // for convenience
-
- //==============================================================================
- // ODSession
- //==============================================================================
-
- interface ODSession : ODBaseSession
- {
- //---------------------------------
- // Global Accessors
-
- ODWindowState GetWindowState();
-
- ODDispatcher GetDispatcher();
-
- ODArbitrator GetArbitrator();
-
- ODClipboard GetClipboard();
-
- ODDragAndDrop GetDragAndDrop();
-
- ODLinkManager GetLinkManager();
-
- ODMessageInterface GetMessageInterface();
-
- ODNameResolver GetNameResolver();
-
- ODTranslation GetTranslation();
-
- ODUndo GetUndo();
-
- ODIText GetUserName();
-
- //---------------------------------
- // Semantic Events
-
- ODSemanticInterface GetSemanticInterface();
-
- ODSemanticInterface GetShellSemtInterface();
-
- //---------------------------------
- // Types and Token
-
- ODTypeToken Tokenize( inout ODType type);
-
- void RemoveEntry( inout ODType type);
-
- ODBoolean GetType(in ODTypeToken token,
- out ODType type);
-
- //---------------------------------
- // Registration
-
- void RegisterObject(in ODPersistentObject object,
- in ODISOStr collection,
- in ODSLong refCon);
-
- void UnregisterObject(in ODPersistentObject object,
- in ODISOStr collection,
- in ODSLong refCon);
-
- ODBoolean Exists(in ODPersistentObject object,
- in ODISOStr collection,
- in ODSLong refCon);
-
- //---------------------------------
- // Data Interchange
-
- ODChangeID UniqueChangeID();
-
- //---------------------------------
- // Shutdown
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit,
- Close,
- Purge;
- releaseorder:
- GetWindowState,
- GetDispatcher,
- GetArbitrator,
- GetClipboard,
- GetDragAndDrop,
- GetLinkManager,
- GetMessageInterface,
- GetNameResolver,
- GetTranslation,
- GetUndo,
- GetUserName,
- GetSemanticInterface,
- GetShellSemtInterface,
- Tokenize,
- RemoveEntry,
- GetType,
- RegisterObject,
- UnregisterObject,
- Exists,
- UniqueChangeID;
-
- };
- #endif
- };
-
-
- #endif // _ODSESSN_
-